// config-overrides.js
module.export={
  webpack: (config) => {
    // 自定义 Webpack 配置（如图中代码）
    config.output.library = 'ReactApp';
    config.output.libraryTarget = 'umd';
    config.output.chunkLoadingGlobal = 'webpackJsonp_ReactApp';
    config.output.globalObject = 'window';
    return config;
  },
  devServer: (config) => {
    // 自定义开发服务器配置
    config.headers = {
      'Access-Control-Allow-Origin': '*',
    };
    config.historyApiFallback = true;
    config.hot = false;
    config.watchContentBase = false;
    return config;
  },
};